from collections import defaultdict


def count_letter(s):
    d = defaultdict(int)
    for k in s:
        d[k] += 1

    return sorted(d.items())


s = "mississippi"
print(count_letter(s))
